package 工厂模式.abstractfactory.factory;

public class FactoryParent {

    public static Factory createFactory(String type) {
        if (type.equals("ali")) {
            return new AliFactory();
        } else if (type.equals("wx")) {
            return new WxFactory();
        } else {
            return null;
        }
    }
}
